<?
include_once "../../persistobject/userdesc.lib";
include_once "listlayout.lib";
include_once "userpub.lib";

$userDesc = new CUserDesc();

$listLayout = new CListLayout($userDesc, getenv("DOCUMENT_ROOT")."/admin/user/layoutdesc/listlayoutdesc.xml");
$listLayout->editUrl = "useredit.php";
$listLayout->viewUrl = "userview.php";
$listLayout->disableSearch = true;

$layoutFactory = new CLayoutFactoryAdmin();
$layoutFactory->setActiveTab("TM_2");
$layoutFactory->addSideBox(GetToolBox());
$content = $listLayout->layout();

$header = $layoutFactory->getHeader();
$tail = $layoutFactory->getTail();
$body = $layoutFactory->getBody($content);

echo $header.$body.$tail;

?>
